home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr10 / snr503.zip / SDF2FIX.S < prev    next >
Text File  |  1993-05-30  |  1KB  |  24 lines

  1. \  SDF2FIX.S
  2. \  demo sample table
  3.  
  4. \  This table reformats a comma-quote-delimited data file into 
  5. \  a fixed-length data file.
  6.  
  7. \ The following single equation reads four variable-length 
  8. \ comma-quote-delimited fields and pads them out to fixed length. The 
  9. \ padded length of the fields are 15, 15, 30 and 14.
  10.  
  11. "\^*(15)\v","\^*(15)\v","\^*(30)\v","\^*(14)\v"\0d\0a=\^L1\^L2\^L3\^R4\0d\0a
  12.  
  13. \ The literal translation of the equation reads:
  14. \  a quote mark + up to 15 printable characters terminated by 
  15. \  a quote-comma-quote + up to 15 printable characters terminated 
  16. \  by a quote-comma-quote + up to 30 printable characters 
  17. \  terminated by a quote-comma-quote + up to 14 printable 
  18. \  characters terminated by a quote-carriage return-line feed =  the 1st 
  19. \  variable-length field padded and left-aligned + the 2nd variable-length 
  20. \  field padded and left-aligned + the 3rd variable-length field padded and 
  21. \  left-aligned + the 4th variable-length field padded and right-aligned + 
  22. \  a carriage return line feed.
  23.  
  24.